<sel name="Public/content-base"/>
<extend name="Public/base" />
<block name="nav">
    <ul class="breadcrumb">
        <li>
            <i class="icon-home black small"></i><a href="{:U('Index/index');}">首页</a>
            <span class="divider">&raquo;</span>
        </li>
        <li>
            <a href="{:U('index');}">广告列表</a>
            <span class="divider">&raquo;</span>
        </li>
        <li>广告位调用代码</li>
    </ul>
    <!--<h1 id="main-heading">新增用户</h1>-->
</block>

<block name="body">
    <div class="row-fluid">
        <div class="span12 widget">
            <?php
                if(!C('IS_MODAL')){
            ?>
            <div class="widget-header">
                <span class="title"><i class="icol-application-form"></i> 广告位调用代码</span>
            </div>
            <?php
            }
            ?>
            <div class="widget-content form-container">
                <form id="form" action="{:U('')}" method="post" class="form-horizontal ajax-form">
				<!-- 基础 -->
                    <div class="control-group">
                        <label class="control-label">调用代码</label>
                        <div class="controls">
                            <textarea name="description" class="span10" readonly="readonly">{$js}</textarea>
                            <p class="help-block">请复制到需要展示的位置</p>
                        </div>
                    </div>

				
                    <div class="form-actions">
                        <?php
                                    if(!C('IS_MODAL')){
                                ?>
                        <button class="btn btn-info" onclick="javascript:history.back(-1);return false;">返 回</button>
                        <?php
                                }else{
                                ?>
                        <a href="#" class="btn" data-dismiss="modal">关闭</a>
                        <?php

                                }?>
                    </div>
                </form>
            </div>
        </div>
    </div>
</block>
<block name="modal-script">
    {:my_tag('form_validate','PosterSpace')}
    <script type="text/javascript">
        modal_head("广告位调用代码");
    </script>
</block>
<block name="script">
	<script type="text/javascript">
		//导航高亮
		highlight_subnav("{:U('Poster/index')}");
	</script>
</block>
